home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
-
- <!--
- This is Foundation Kit's NSCoreSuite terminology recast as an sdef. NSCoreSuite
- is itself AppleScript's Standard Suite recast as a plist instead of the original
- aete. There are several differences between the original Standard Suite and
- Cocoa's version of it, and not all of them are correct: these places are noted
- with "supposed to" comments.
- -->
-
- <dictionary title="Standard Terminology">
- <suite name="Standard Suite" code="????" description="Common classes and commands for most applications.">
- <cocoa name="NSCoreSuite"/>
- <classes>
- <class name="item" code="cobj" description="A scriptable object.">
- <cocoa class="AbstractObject"/>
- <properties>
- <property name="class" code="pcls" type="type" access="r" description="The class of the object.">
- <cocoa key="classCode"/>
- </property>
- <property name="properties" code="pALL" type="record" description="All of the object's properties.">
- <cocoa key="scriptingProperties"/>
- </property>
- </properties>
- </class>
- <class name="application" code="capp" description="An application's top level scripting object.">
- <cocoa class="NSApplication"/>
- <elements>
- <element type="document" access="rw">
- <cocoa key="orderedDocuments"/>
- </element>
- <element type="window" access="r">
- <cocoa key="orderedWindows"/>
- </element>
- </elements>
- <properties>
- <property name="name" code="pnam" type="string" access="r" description="The name of the application.">
- <cocoa key="nameProperty"/>
- </property>
- <property name="frontmost" code="pisf" type="boolean" access="r" description="Is this the frontmost (active) application?">
- <cocoa key="isActive"/>
- </property>
- <property name="version" code="vers" type="string" access="r" description="The version of the application.">
- <cocoa key="versionProperty"/>
- </property>
- </properties>
- <responds-to-commands>
- <responds-to name="open">
- <cocoa method="handleOpenScriptCommand:"/>
- </responds-to>
- <!--
- <responds-to name="print">
- <cocoa method="handlePrintScriptCommand:"/>
- </responds-to>
- -->
- <responds-to name="quit">
- <cocoa method="handleQuitScriptCommand:"/>
- </responds-to>
- </responds-to-commands>
- </class>
- <class name="color" code="colr" description="A color.">
- <cocoa class="NSColor"/>
- </class>
- <class name="document" code="docu" description="A document.">
- <cocoa class="NSDocument"/>
- <properties>
- <property name="path" code="ppth" type="string" description="The document's path.">
- <cocoa key="fileName"/>
- </property>
- <property name="modified" code="imod" type="boolean" access="r" description="Has the document been modified since the last save?">
- <cocoa key="isDocumentEdited"/>
- </property>
- <property name="name" code="pnam" type="string" description="The document's name.">
- <cocoa key="lastComponentOfFileName"/>
- </property>
- </properties>
- <responds-to-commands>
- <responds-to name="close">
- <cocoa method="handleCloseScriptCommand:"/>
- </responds-to>
- <!--
- <responds-to name="print">
- <cocoa method="handlePrintScriptCommand:"/>
- </responds-to>
- -->
- <responds-to name="save">
- <cocoa method="handleSaveScriptCommand:"/>
- </responds-to>
- </responds-to-commands>
- </class>
- <class name="window" code="cwin" description="A window.">
- <cocoa class="NSWindow"/>
- <properties>
- <property name="name" code="pnam" type="string" description="The full title of the window.">
- <cocoa key="title"/>
- </property>
- <property name="id" code="ID " type="integer" access="r" description="The unique identifier of the window.">
- <cocoa key="uniqueID"/>
- </property>
- <property name="bounds" code="pbnd" type="rectangle" description="The bounding rectangle of the window.">
- <cocoa key="boundsAsQDRect"/>
- </property>
- <property name="document" code="docu" type="document" access="r" description="The document whose contents are being displayed in the window."/>
- <property name="closeable" code="hclb" type="boolean" access="r" description="Whether the window has a close box.">
- <cocoa key="hasCloseBox"/>
- </property>
- <property name="titled" code="ptit" type="boolean" access="r" description="Whether the window has a title bar.">
- <cocoa key="hasTitleBar"/>
- </property>
- <property name="index" code="pidx" type="integer" description="The index of the window in the back-to-front window ordering.">
- <!-- the type is supposed to be "integer" -->
- <cocoa key="orderedIndex"/>
- </property>
- <property name="floating" code="isfl" type="boolean" access="r" description="Whether the window floats.">
- <cocoa key="isFloatingPanel"/>
- </property>
- <property name="miniaturizable" code="ismn" type="boolean" access="r" description="Whether the window can be miniaturized.">
- <cocoa key="isMiniaturizable"/>
- </property>
- <property name="miniaturized" code="pmnd" type="boolean" description="Whether the window is currently miniaturized.">
- <cocoa key="isMiniaturized"/>
- </property>
- <property name="modal" code="pmod" type="boolean" access="r" description="Whether the window is the application's current modal window.">
- <cocoa key="isModalPanel"/>
- </property>
- <property name="resizable" code="prsz" type="boolean" access="r" description="Whether the window can be resized.">
- <cocoa key="isResizable"/>
- </property>
- <property name="visible" code="pvis" type="boolean" description="Whether the window is currently visible.">
- <cocoa key="isVisible"/>
- </property>
- <property name="zoomable" code="iszm" type="boolean" access="r" description="Whether the window can be zoomed.">
- <cocoa key="isZoomable"/>
- </property>
- <property name="zoomed" code="pzum" type="boolean" description="Whether the window is currently zoomed.">
- <cocoa key="isZoomed"/>
- </property>
- </properties>
- <responds-to-commands>
- <responds-to name="close">
- <cocoa method="handleCloseScriptCommand:"/>
- </responds-to>
- <!--
- <responds-to name="print">
- <cocoa method="handlePrintScriptCommand:"/>
- </responds-to>
- -->
- <responds-to name="save">
- <cocoa method="handleSaveScriptCommand:"/>
- </responds-to>
- </responds-to-commands>
- </class>
- </classes>
- <commands>
- <!-- The old Standard Suite: run, reopen, open, print, and quit. -->
- <command name="open" code="aevtodoc" description="Open an alias.">
- <direct-parameter type="file" description="The alias to be opened."/>
- </command>
-
- <command name="print" description="Print an object." code="aevtpdoc">
- <!-- type would be better written as "file | document". -->
- <direct-parameter type="file" description="The file(s) or document(s) to be printed."/>
- </command>
-
- <command name="quit" code="aevtquit" description="Quit an application.">
- </command>
-
- <!-- "get" is supposed to be hidden. -->
- <command name="get" code="coregetd" description="Get the data for an object.">
- <direct-parameter type="any"/>
- <result type="any"/>
- </command>
-
- <!-- "set" is supposed to be hidden. -->
- <command name="set" code="coresetd" description="Set an object's data.">
- <direct-parameter type="any"/>
- <parameter name="to" code="data" type="any" description="The new value.">
- <cocoa key="Value"/>
- </parameter>
- </command>
- </commands>
- </suite>
- </dictionary>
-